class Solution {
public:
    string categorizeBox(int length, int width, int height, int mass) {
        string ans[] = { "Heavy", "Both", "Bulky", "Neither" };
        long long vol = (long long)length * (long long)width * (long long)height;

        if(length >= 1e4 || width >= 1e4 || height >= 1e4 || vol >= 1e9)
        {
            if(mass >= 100)
                return ans[1];
            else
                return ans[2];
        }
        else if(mass >= 100)
            return ans[0];
        else
            return ans[3];
    }
};
